package com.jg.test.Page;

import com.jg.test.AnyTest;
import com.jg.test.Dice;
import com.jg.test.Monster.Monster;

public class Start002 extends Page {

    @Override
    public void effect() {
    }

    @Override
    public void sendMessage() {
        System.out.println(
                "你遭遇了" + AnyTest.monsters.get(0).get(0).getLvName() + "！" + "\n"
        );
        for (Monster m : AnyTest.monsters.get(0)
        ) {
            System.out.println(
                    m.getName() + "  " + m.getHealth() + "/" + m.getHealthLimit()
            );
        }
        System.out.println();
        System.out.println("我方行动。");
        System.out.println();

        Dice.diceShow();

        System.out.println("\n0.重掷骰子" + "\n" + "1.查看英雄技能" + "\n" + "2.直接战斗");
    }

    @Override
    public void next() {
        int choice = Page.numGet(2);
        switch (choice) {
            case 0:
                AnyTest.pageNavigation.add(new Start003());
                break;
            case 1:
                AnyTest.pageNavigation.add(new Start004());
                break;
            case 2:
                AnyTest.pageNavigation.add(new Battle000());
                break;
        }

    }
}
